% Zoom script
% Purpose
%% Variables loading
load normsh;
load nnsh;
%% Go over the notyet folder
ny_folder = dir('notyet');
ny_folder = ny_folder(3:end);

%% Run the autozoom function
for i = 1:length(ny_folder)
    i
    filepath = fullfile('notyet',ny_folder(i).name);
    I = imread(filepath);
    zoomed_image = autozoom(I,normsh,nnsh);
    imwrite(zoomed_image,filepath,'JPEG');
end